package com.example.demo20250517.controller;

import com.example.demo20250517.reponse.RespondResult;
import com.example.demo20250517.service.QuestionItemService;
import com.example.demo20250517.vo.QuestionItemAddVo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Desctription: TODO
 * @Date: Created in 2025/5/17 10:35
 * @Version: 1.0
 */
@RestController
@RequestMapping("/bank/item")
public class QuestionBankItemController {

    @Resource
    private QuestionItemService questionItemService;


    //增
    @PostMapping("/add")
    private RespondResult<Object> add(@RequestBody QuestionItemAddVo questionItemAddVo) {
        return RespondResult.success(questionItemService.add(questionItemAddVo));
    }



    //删


    //改

    //查

}
